<ul class="tab">
    <li class="active"><a href="/?cat=admin&op=visits"><span><!--TPL:"Visits"|gettext--></span></a></li>
    <li><a href="/?cat=admin&op=users"><span><!--TPL:"Users"|gettext--></span></a></li>
    <li><a href="/?cat=admin&op=releases"><span><!--TPL:"Upload releases"|gettext--></span></a></li>
</ul>

<!--TPL:if $smarty.request.op == 'visits'-->
<!--TPL:include file="_admin_visits.block.tmpl.html"-->
<!--TPL:/if-->


<FORM method="post" action="/?cat=admin">

    <TABLE class="commit_table" width="63%" align="center" cellspacing="5" cellpadding="0">
	<TR>
	    <TD width="100%" class="commit_caption">
		<TABLE border="0">
		    <TR>
			<TD  nowrap align="left" width="100%">
			    <!--TPL:"Administer site"|gettext-->
			</TD>
		    </TR>
		</TABLE>
	    </TD>
	</TR>
	<TR>
	    <TD width="100%" class="commit_desc" align="center">
		<!--TPL:"blablablah"|gettext-->
	    </TD>
	</TR>
	<TR>
	    <TD width="100%">

                <TABLE width="100%" border="0" align="center" cellspacing="0" cellpadding="5">
                <TR>
                        <TD class="commit_label" nowrap align="right" width="10%">
                                <!--TPL:"Get metalstorm.ee releases"|gettext-->:
                        </TD>
                        <TD nowrap align="left" height="32" width="75%">
                          <FORM action="#">
                            <input type="button" value="Go" onclick="window.location='/?cat=admin&op=get_metalstorm';">
                            </FORM>
                        </TD>
                </TR>
                <BR>
                <TABLE width="100%" border="0" align="center" cellspacing="0" cellpadding="5">
                <TR>
                        <TD class="commit_label" nowrap align="right" width="10%">
                                <!--TPL:"Get wikipedia releases"|gettext-->:
                        </TD>
                        <TD nowrap align="left" height="32" width="75%">
                          <FORM action="#">
                            <input type="button" value="Go" onclick="window.location='/?cat=admin&op=get_wikipedia';">
                            </FORM>
                        </TD>
                </TR>

                <BR>
                <TABLE width="100%" border="0" align="center" cellspacing="0" cellpadding="5">
                <TR>
                        <TD class="commit_label" nowrap align="right" width="10%">
                                <!--TPL:"Get metacritic releases"|gettext-->:
                        </TD>
                        <TD nowrap align="left" height="32" width="75%">
                          <FORM action="#">
                            <input type="button" value="Go" onclick="window.location='/?cat=admin&op=get_metacritic';">
                            </FORM>
                        </TD>
                </TR>             

                </TABLE>

	    </TD>
	</TR>
    </TABLE>


<BR>
<!--TPL:foreach name=outer from=$metalstorm_releases item=item-->
    <!--TPL:if $smarty.foreach.outer.first-->
    <input type="hidden" name="op" value="commit_metalstorm">
    <TABLE class="commit_table" width="63%" align="center" cellspacing="5" cellpadding="0">
	<TR>
	    <TD width="100%" class="commit_caption" colspan="2">
		<TABLE border="0">
		    <TR>
			<TD  nowrap align="left" width="100%">
			    <!--TPL:"Metalstorm releases"|gettext-->
			</TD>
		    </TR>
		</TABLE>
	    </TD>
	</TR>
    <!--TPL:/if-->
    <!--TPL:cycle values="0,1" name="tr" print=false assign="tr_class"-->
    <TR class="data_<!--TPL:$tr_class-->">
	    <TD>
                <input type="checkbox" name="release[]" value="<!--TPL:$item.date-->|<!--TPL:$item.artist-->|<!--TPL:$item.release-->" checked>
	    </TD>
            <TD>
                <!--TPL:$item.date-->|<!--TPL:$item.artist-->|<!--TPL:$item.release-->
            </TD>
	</TR>
    <!--TPL:if $smarty.foreach.outer.last-->
    <TR>
        <TD colspan="2">
            <INPUT type="submit" value="<!--TPL:"Commit releases"|gettext-->">
        </TD>
    </TR>
        </TABLE>
    <!--TPL:/if-->
<!--TPL:/foreach-->

<!--TPL:foreach name=outer from=$wikipedia_releases item=item-->
    <!--TPL:if $smarty.foreach.outer.first-->
    <input type="hidden" name="op" value="commit_wikipedia">
       <TABLE class="commit_table" width="63%" align="center" cellspacing="5" cellpadding="0">
            <TR>
                <TD width="100%" class="commit_caption" colspan="2">
                    <TABLE border="0">
                        <TR>
                            <TD  nowrap align="left" width="100%">
                                <!--TPL:"Wikipedia releases"|gettext-->
                            </TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
    <!--TPL:/if-->
    <!--TPL:cycle values="0,1" name="tr" print=false assign="tr_class"-->
    <TR class="data_<!--TPL:$tr_class-->">
	    <TD>
                <input type="checkbox" name="release[]" value="<!--TPL:$item.date-->|<!--TPL:$item.artist-->|<!--TPL:$item.release-->">
	    </TD>
            <TD>
                <!--TPL:$item.date-->|<!--TPL:$item.artist-->|<!--TPL:$item.release-->
            </TD>
	</TR>
    <!--TPL:if $smarty.foreach.outer.last-->
    <TR>
        <TD colspan="2">
            <INPUT type="submit" value="Commit releases">
        </TD>
    </TR>
        </TABLE>
    <!--TPL:/if-->
<!--TPL:/foreach-->

<!--TPL:foreach name=outer from=$custom_releases item=item-->
    <!--TPL:if $smarty.foreach.outer.first-->
    <input type="hidden" name="op" value="commit_custom">
       <TABLE class="commit_table" width="63%" align="center" cellspacing="5" cellpadding="0">
            <TR>
                <TD width="100%" class="commit_caption" colspan="2">
                    <TABLE border="0">
                        <TR>
                            <TD  nowrap align="left" width="100%">
                                <!--TPL:"Custom releases"|gettext-->
                            </TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
    <!--TPL:/if-->
    <!--TPL:cycle values="0,1" name="tr" print=false assign="tr_class"-->
    <TR class="data_<!--TPL:$tr_class-->">
	    <TD>
                <input type="checkbox" name="release[]" value="<!--TPL:$item.date-->|<!--TPL:$item.artist-->|<!--TPL:$item.release-->">
	    </TD>
            <TD>
                <!--TPL:$item.date-->|<!--TPL:$item.artist-->|<!--TPL:$item.release-->
            </TD>
	</TR>
    <!--TPL:if $smarty.foreach.outer.last-->
    <TR>
        <TD colspan="2">
            <INPUT type="submit" value="<!--TPL:"Commit releases"|gettext-->">
        </TD>
    </TR>
        </TABLE>
    <!--TPL:/if-->
<!--TPL:/foreach-->
<!--TPL:if !isset($smarty.request.op)-->
<br>
<input type="hidden" name="op" value="get_custom">
   <TABLE class="commit_table" width="63%" align="center" cellspacing="5" cellpadding="0">
	<TR>
	    <TD width="100%" class="commit_caption">
		<TABLE border="0">
		    <TR>
			<TD  nowrap align="left" width="100%">
			    <!--TPL:"Custom releases"|gettext-->
			</TD>
		    </TR>
		</TABLE>
	    </TD>
	</TR>

    <TR>
	    <TD>
                <textarea name="custom" style="width: 100%;" rows="12"></textarea>
	    </TD>

	</TR>

        <TR>
            <TD>
                <input type="text" name="date">
            </TD>
        </TR>
<TR>
    <TD colspan="2">
        <INPUT type="submit" value="Commit releases">
    </TD>
</TR>
    </TABLE>
<!--TPL:/if-->


</FORM>
